Skip to content

Introduce CurveStyle type for shared STD/TOD styling#16729

Open
kmer2016 wants to merge 1 commit into
devfrom
cnh/front/curve-style-type
Open

Introduce CurveStyle type for shared STD/TOD styling#16729
kmer2016 wants to merge 1 commit into
devfrom
cnh/front/curve-style-type

Conversation

@kmer2016
Copy link
Copy Markdown
Contributor

@kmer2016 kmer2016 commented May 13, 2026

This PR adds the CurveStyle type to the simulation result types.

It is the output of the shared curve-style helper that will style curves in both STD (PathLayer) and TOD (OccupancyBlockLayer).

It is added first so that other developers can start to work on STD, TOD and ui changes in parallel, before the helper itself is ready.

Output type of the shared curve-style helper. It is computed by the
helper and used by STD (PathLayer) and TOD (OccupancyBlockLayer).

Signed-off-by: nncluzu <ngamenichaka@yahoo.fr>
@kmer2016 kmer2016 requested review from Akctarus and SharglutDev May 13, 2026 12:58
@kmer2016 kmer2016 requested a review from a team as a code owner May 13, 2026 12:58
@github-actions github-actions Bot added the area:front Work on Standard OSRD Interface modules label May 13, 2026
Comment on lines +144 to +147
label?: {
border?: { color: string; width: number };
fontWeight?: number;
};
Copy link
Copy Markdown
Contributor

@Akctarus Akctarus May 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After working on it, I found out that we better may need something like that for labels:

Suggested change
label?: {
border?: { color: string; width: number };
fontWeight?: number;
};
label?: {
fontWeight?: number;
background?: string;
borderRadius?: number;
};

see in #16752 , but it can be discussed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:front Work on Standard OSRD Interface modules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants